class AddNeededColumnsToReservations < ActiveRecord::Migration
  def self.up
    remove_column :reservations, :duration
    remove_column :reservations, :vehicle_type_id
    add_column :reservations, :vehicle_type, :string, :limit =>100
    add_column :reservations, :round_trip, :boolean, :default => 0
    add_column :reservations, :pick_up_at, :datetime
  end

  def self.down
    add_column :reservations, :duration, :integer
    add_column :reservations, :vehicle_type_id, :integer, :default => 0
    remove_column :reservations, :vehicle_type
    remove_column :reservations, :round_trip
    remove_column :reservations, :pick_up_at
  end
end